package com.bwei.mypaot.base.activity;

import android.app.Application;

import com.baidu.location.BDLocationListener;
import com.baidu.location.LocationClient;
import com.baidu.location.LocationClientOption;
import com.baidu.mapapi.SDKInitializer;
import com.baidu.mapapi.map.MapView;
import com.bwei.mypaot.R;
import com.bwei.mypaot.utils.OKHttpSingleTop;
import com.umeng.socialize.PlatformConfig;
import com.umeng.socialize.UMShareAPI;

/**
 * Created by Administrator on 2017/2/16.
 */

public class MyApplication extends Application {
    //初始化单例
    public static OKHttpSingleTop oKHttpSingleTop;
    @Override
    public void onCreate() {
        super.onCreate();
        oKHttpSingleTop= OKHttpSingleTop.getInstance();
        //在使用SDK各组件之前初始化context信息，传入ApplicationContext
        //注意该方法要再setContentView方法之前实现
        SDKInitializer.initialize(getApplicationContext());
        PlatformConfig.setQQZone("100424468", "c7394704798a158208a74ab60104f0ba");
        UMShareAPI.get(this);
    }

}
